<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const top250 = [{
                name: "lisi",
                age: 10
            },
            {
                name: "lisi1",
                age: 11
            },
            {
                name: "lisi2",
                age: 16
            },
            {
                name: "lisi3",
                age: 6
            },
            {
                name: "lisi4",
                age: 20
            }

        ]
        var res = top250.filter(item => {

          return   item.age>=6&&item.age<=11
        })
        var list = []
        res.forEach(item=>{
            list.push({
                age:item.age
            })
        })
        console.log(list);
    </script>
</body>

</html>